const koa = require("koa")
const router = require("koa-router")()
const main = require('./model/data')
const app = new koa()
router.get("/",async ctx=>{
    
    var res = await main()
    ctx.body = res
})
app.use(router.routes())
app.listen(8080)